﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.events.*;
    import Engine.Managers.*;
    import flash.display.*;
    import flash.utils.*;
    import Classes.util.*;
    import Display.*;

    public class InputTextDialogNormal extends InputTextDialog {

        public function InputTextDialogNormal(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:int=0, _arg6:int=0, _arg7:Function=null, _arg8:Boolean=true, _arg9:Function=null, _arg10:Boolean=false){
            m_lightbox = _arg10;
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary();
            _local1["dialog_bg"] = (new m_comObject.dialog_bg() as DisplayObject);
            return (_local1);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:InputTextNormalDialogView = new InputTextNormalDialogView(_arg1, m_message, m_title, m_inputLabel, m_inputField, m_type, m_callback, "", 0, m_SkipCallback);
            m_textField = _local2.textField;
            return (_local2);
        }
        override protected function onShow():void{
            if (m_shown == false){
                if (m_modal){
                    InputManager.disableInput();
                    Global.ui.mouseEnabled = false;
                    Global.ui.mouseChildren = false;
                };
                if (m_lightbox){
                    Global.ui.displayLightbox(true, UI.MASK_ALL_UI);
                };
                if (useSystemCursor()){
                    m_cursorId = UI.setCursor(null);
                };
                this.mouseEnabled = (this.mouseChildren = true);
                m_shown = true;
                Global.stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);
            } else {
                m_showOnLoad = true;
            };
            if (!Global.guide.isActive()){
                Sounds.play("dialogSpawn");
            };
        }

    }
}//package Display.DialogUI 
